package com.xc.dao;

import com.xc.pojo.Access;
import com.xc.pojo.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 权限
 */
@Mapper
@Repository
public interface MenuMapper {

    /**
     * [新增]
     * @author lr
     * @date 2020/07/24
     **/
    Integer insertMenu(Menu menu);

    Integer updateMenu(Menu menu);

    /**`
     * [刪除]
     **/
    Integer deleteMenu(@Param("menuId") Integer menuId);


    List<Menu> menuList(@Param("title") String title);

    List<Menu> menuListByPid(Integer menuId);

}
